<?php use_helper('Date', 'SEstadisticas') ?>
<?php echo_title('Detalles malla') ?>

<div id="admin_container">
  <h1>Detalles de Malla curricular</h1>

  <?php include_partial('flashes') ?>

  <div id="admin_content">
    <div id="admin_show">
    <table>
      <tbody>
        <tr>
          <td class="admin_show_name">Carrera:</td>
          <td><?php echo $malla_curricular->getCarrera() ?></td>
        </tr>
        <tr>
          <td class="admin_show_name">Vigente:</td>
          <td><?php echo $malla_curricular->getVigente() ? 'Si' : 'No' ?></td>
        </tr>
      </tbody>
    </table>
    </div>
    
    <ul class="admin_actions">
      <li class="admin_action_edit">
        <?php echo link_to('Editar', '@malla_curricular_edit?id=' . $malla_curricular->getId()) ?>
      </li>
      <li class="admin_action_list">
        <?php echo link_to('Listar', '@malla_curricular') ?>
      </li>
      <?php if ($sf_user->hasCredential(sfConfig::get('audit_credential'))): ?>
      <li class="admin_action_list">
        <?php echo link_to('Historial de cambios', '@malla_curricular_historic?id=' . $malla_curricular->getId()) ?>
      </li>
      <?php endif ?>
    </ul>
    
    <br>
    <h3>Elementos relacionados</h3>
    
    <ul class="admin_show_related">
      <li> 
        <?php echo link_to('M&oacute;dulos', '@modulo?malla_id=' . $malla_curricular->getId()) ?>
      </li>
    </ul>
  </div>
</div>